<?php
/**
 * @Copyright: (C)2021 xuzy Inc. All Rights Reserved.
 * @Author: xuzy
 * @Date: 2021/12/19 18:33
 */

namespace App\Model;

use Illuminate\Database\Eloquent\Model;

class User extends Model
{
    protected $table = 'users';

    public function setPasswordAttribute($value)
    {
        $this->attributes['password'] =   md5(env('APP_KEY').md5($value));
    }

}